﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="FaleConosco.aspx.cs" Inherits="MakeIT.Deo.Apresentacao.FaleConosco" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <asp:Literal ID="LiteralRedirect" runat="server"></asp:Literal>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

            <asp:Panel ID="PanelContato" runat="server" Visible="true">
                <center>
                <table>
                    <tr>
                        <td align="center" style="font-size:smaller; color:Blue">
                            <asp:ImageMap ID="ImageMapBrasil" runat="server" ImageUrl="~/App_Themes/Padrao/imagens/masterPage/mapBRASIL.gif" OnClick="ImageMapBrasil_Click">
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Alagoas" Coordinates="261,109,283,107,274,116,261,109"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Acre" Coordinates="6,88,59,111,55,120,45,122,32,119,31,107,23,114,13,108,6,97"/>
                                <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Amazonas" Coordinates="6,89,17,73,34,72,38,48,34,43,34,37,39,35,35,34,36,26,45,30,50,25,58,33,68,34,78,24,85,24,89,36,89,48,92,51,98,41,103,43,109,38,115,37,116,47,123,51,133,53,118,103,99,103,84,97,70,108,62,107,60,111"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Amapá" Coordinates="147,24,156,24,167,9,170,14,172,24,178,30,177,34,182,41,188,42,182,51,175,47,176,41,170,41,164,43,156,31,147,24"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Bahia" Coordinates="238,169,245,163,246,156,238,155,234,152,227,152,226,148,220,149,219,143,212,144,205,151,209,114,217,118,225,109,236,109,238,101,240,102,245,109,253,102,260,109,257,120,263,131,255,136,251,148,254,157,248,171,238,169"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Ceará" Coordinates="239,62,247,71,242,81,242,86,247,91,253,92,259,95,255,90,269,75,263,68,248,57,239,62"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Goiás" Coordinates="176,134,152,168,168,181,175,174,189,173,198,160,195,156,199,149,204,152,206,134,182,139,176,134"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Espirito Santo" Coordinates="229,191,238,170,248,171,248,181,235,195"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Maranhão" Coordinates="208,113,209,97,230,87,230,71,235,62,221,56,215,51,206,47,202,67,190,76,197,81,197,93,200,96,200,107,208,113"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Mato Grosso" Coordinates="97,104,94,116,106,121,110,127,103,139,106,148,104,155,109,160,119,159,122,171,137,167,150,168,176,133,169,127,174,111,128,108,122,94,119,104,97,104"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Mato Grosso do Sul" Coordinates="123,171,118,179,124,191,120,195,127,202,132,200,136,203,139,213,146,214,161,195,161,188,167,181,151,169,139,167,123,171"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Minas Gerais" Coordinates="220,201,235,178,238,169,246,163,246,156,238,155,234,152,226,153,225,150,220,150,219,144,212,145,205,152,200,150,195,156,198,160,190,174,176,173,169,180,182,188,185,182,195,185,198,191,209,201,220,201"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Pará" Coordinates="119,28,127,26,134,28,137,23,153,31,163,48,170,45,181,53,193,45,206,48,201,67,190,75,189,89,184,93,182,105,174,111,129,108,122,92,134,53,122,51,117,47,113,36,119,28"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Paraíba" Coordinates="262,84,257,90,264,97,273,95,277,97,286,93,286,86,272,85,262,84"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Paraná" Coordinates="146,214,143,224,148,225,148,233,180,229,191,220,178,220,173,208,166,205,154,205,146,214"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Pernambuco" Coordinates="246,91,241,101,244,107,253,102,260,108,283,106,288,98,287,93,277,97,272,95,264,98,256,92,246,91"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Piauí" Coordinates="237,61,230,70,230,87,208,98,208,113,217,116,224,108,236,107,237,101,240,101,246,90,242,88,242,80,246,71,237,61"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Rio de Janeiro" Coordinates="209,201,210,209,227,207,235,195,229,191,221,201,209,201"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Rio Grande do Norte" Coordinates="270,74,263,83,271,86,279,84,287,85,287,80,277,75,270,74"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Rio Grande do Sul" Coordinates="145,236,126,253,122,260,129,261,131,267,141,267,151,281,163,269,177,248,161,242,156,242,145,236"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Rondônia" Coordinates="59,112,70,111,69,126,92,137,103,139,110,125,107,120,94,117,98,102,84,96,70,108,62,107,59,112"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Roraima" Coordinates="77,24,72,22,76,16,71,10,80,12,106,4,109,25,119,27,114,36,109,37,102,43,98,41,91,51,89,35,85,24,77,24"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Santa Catarina" Coordinates="147,232,146,237,156,242,163,243,177,248,184,236,180,229,147,232"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="São Paulo" Coordinates="168,182,184,189,185,182,195,185,198,193,209,201,209,209,190,220,177,220,173,208,167,204,154,204,162,195,162,188,168,182"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Sergipe" Coordinates="263,129,258,120,260,109,272,116,263,129"/>
	                            <asp:PolygonHotSpot HotSpotMode="PostBack" PostBackValue="Tocantins" Coordinates="190,78,190,90,183,94,183,106,174,111,169,127,182,138,206,133,208,114,200,107,200,96,196,93,197,82,190,78"/>
                            </asp:ImageMap><br />
                            Informe sua região clicando em seu estado
                        </td>
                        <td>
                            <table width="600" cellspacing="3" border="0" style="border:solid 1px black;">
                                <tr>
                                    <td valign="middle" style="font-size:large;">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Padrao/imagens/masterPage/mail.ico"/><br />
                                        Fale Conosco
                                    </td>
                                    <td colspan="2" align="center" style="font-size:9pt;">
                                        <b><asp:Label ID="LabelEmpresa" runat="server" Text=""></asp:Label></b><br />
                                        <asp:Label ID="LabelEmail" runat="server" Text=""></asp:Label><br />
                                        <asp:Label ID="LabelFone" runat="server" Text=""></asp:Label><br />
                                        <asp:Label ID="LabelEndereco1" runat="server" Text=""></asp:Label><br />
                                        <asp:Label ID="LabelEndereco2" runat="server" Text=""></asp:Label><br />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Nome:
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="TextBoxNome" runat="server"  MaxLength="50" Columns="50" ></asp:TextBox>
                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="TextBoxNome" WatermarkText="Seu nome ou de sua empresa" WatermarkCssClass="waterMark">
                                        </asp:TextBoxWatermarkExtender>
                                        <asp:RequiredFieldValidator ControlToValidate="TextBoxNome" 
                                           ErrorMessage="Favor informar seu nome." ID="rfvTextBoxNome" Display="None"
                                           runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="rfvTextBoxNome"></asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Email:
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="TextBoxMail" runat="server" MaxLength="50" Columns="50"></asp:TextBox>
                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="TextBoxMail" WatermarkText="Informe o email para contato" WatermarkCssClass="waterMark">
                                        </asp:TextBoxWatermarkExtender>
                                        <asp:RequiredFieldValidator ControlToValidate="TextBoxMail" 
                                           ErrorMessage="Favor informar seu email." ID="rfvTextBoxMail" Display="None"
                                           runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                       <asp:RegularExpressionValidator id="regEmail" ControlToValidate="TextBoxMail"
                                            ErrorMessage="Email não informado corretamente."
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                            Runat="server" Display="None" ValidationGroup="salvar"/> 
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="rfvTextBoxMail"></asp:ValidatorCalloutExtender>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="regEmail"></asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Telefone:
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="TextBoxFone" runat="server" MaxLength="50" Columns="50"></asp:TextBox>
                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="TextBoxFone" WatermarkText="Telefone(s) para contato - Com DDD" WatermarkCssClass="waterMark">
                                        </asp:TextBoxWatermarkExtender>
                                        <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" 
                                            ClearTextOnInvalid="True" ErrorTooltipEnabled="true" AutoComplete="False"
                                            ClearMaskOnLostFocus="false" 
                                            InputDirection="LeftToRight" Mask="(99)999999999 \Cel(99)999999999 Fax(99)999999999" MaskType="None" 
                                            PromptCharacter="_" TargetControlID="TextBoxFone" >
                                        </asp:MaskedEditExtender>
                                        <asp:RequiredFieldValidator ControlToValidate="TextBoxFone" 
                                           ErrorMessage="Favor informar ao menos um n&uacute;mero de telefone." ID="RequiredFieldValidator1" Display="None"
                                           runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="RequiredFieldValidator1"></asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Estado:
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="tbUF" runat="server" ReadOnly="true"></asp:TextBox>
                                        <asp:Label ID="Label1" runat="server" Text="Clique em seu Estado no mapa ao lado" ForeColor="Red" Font-Size="6pt"></asp:Label>
                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" runat="server" TargetControlID="tbUF" WatermarkText="Sua Região" WatermarkCssClass="waterMark"/>
                                        <asp:RequiredFieldValidator ControlToValidate="tbUF" 
                                           ErrorMessage="Favor informar sua região clicando em seu estado no mapa ao lado." ID="rfvTbUF" Display="None"
                                           runat="server" ValidationGroup="salvar" />
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="rfvTbUF"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Cidade:
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="TextBoxCidade" runat="server" MaxLength="50" Columns="50"></asp:TextBox>
                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" runat="server" TargetControlID="TextBoxCidade" WatermarkText="Sua Cidade" WatermarkCssClass="waterMark">
                                        </asp:TextBoxWatermarkExtender>
                                        <asp:RequiredFieldValidator ControlToValidate="TextBoxCidade" 
                                           ErrorMessage="Favor informar a sua cidade." ID="RequiredFieldValidator2" Display="None"
                                           runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator2"></asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Assunto:
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="TextBoxAssunto" runat="server" MaxLength="200" Columns="50"></asp:TextBox>
                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="TextBoxAssunto" WatermarkText="Qual o motivo de seu contato?" WatermarkCssClass="waterMark">
                                        </asp:TextBoxWatermarkExtender>
                                        <asp:RequiredFieldValidator ControlToValidate="TextBoxAssunto" 
                                           ErrorMessage="Favor informar o assunto." ID="RequiredFieldValidator3" Display="None"
                                           runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="RequiredFieldValidator3"></asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td align="right">
                                        Mensagem:
                                    </td>
                                    <td colspan="2" align="left">
                                        <asp:TextBox ID="TextBoxMensagem" runat="server" Rows="5" Columns="50" MaxLength="250" 
                                            Height="100px" TextMode="MultiLine"></asp:TextBox>
                                        <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="TextBoxMensagem" WatermarkText="Deixe aqui a sua mensagem" WatermarkCssClass="waterMark">
                                        </asp:TextBoxWatermarkExtender>
                                        <asp:RequiredFieldValidator ControlToValidate="TextBoxMensagem" 
                                           ErrorMessage="Favor escrever a mensagem." ID="RequiredFieldValidator4" Display="None"
                                           runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator4"></asp:ValidatorCalloutExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Código de seguran&ccedila:<br />
                                    </td>
                                    <td align="left" valign="middle">
                                        <asp:TextBox ID="TextBoxCaptcha" runat="server" Columns="7" MaxLength="5"></asp:TextBox>
                                         <asp:RequiredFieldValidator ControlToValidate="TextBoxCaptcha" 
                                           ErrorMessage="Digite aqui o c&oacute;digo de seguran&ccedil;a." ID="RequiredFieldValidator5" Display="None"
                                           runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator5" PopupPosition="BottomLeft"></asp:ValidatorCalloutExtender>
                                   </td>
                                    <td align="left">
                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/getCaptcha.aspx"/>
                                    </td>
                                </tr>
                                 <tr>
                                    <td colspan="3"  style="color:Red;">
                                        <asp:Literal ID="LiteralMensagem" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <hr />
                                    </td>
                                </tr>
                               <tr>
                                    <td>
                                        <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/Default.aspx">Página Principal</asp:LinkButton>
                                    </td>
                                    <td colspan="2" align="right">
                                        <asp:Button ID="ButtonEnviar" runat="server" Text="Enviar"  OnClick="ButtonEnviar_Click" ValidationGroup="salvar"/>&nbsp;&nbsp;&nbsp;
                                        
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                </center>
            </asp:Panel>

            <asp:Panel ID="PanelOK" runat="server" Visible="false">
                        <div style="filter: alpha(opacity=50); opacity:.5; width:100%; height:100%;vertical-align:middle; text-align:center;">
                         <table cellpadding="0" cellspacing="0" width="100%" style="height:100%; margin:0 0 0 0;">
                            <tr>
                                <td style="vertical-align:middle; text-align:center;"><center>
                                    <asp:Panel ID="Panel1" runat="server" Width="450" Height="250" BackColor="#3333CC">
                                        <div style="width:450px; height:250px; vertical-align: middle; text-align:center; font-size:x-large; color:White;">
                                            <br />
                                            <br />
                                            Sua mensagem foi enviada com sucesso<br />
                                            Em breve responderemos ao seu contato<br />
                                            <br />
                                            Obrigado!<br />
                                            <br />
                                            <br />
                                            <asp:LinkButton ID="LinkButton2" runat="server" PostBackUrl="~/Default.aspx" ForeColor="White">Voltar para a P&aacute;gina Principal</asp:LinkButton>
                                        </div>
                                    </asp:Panel></center>
                                    <asp:RoundedCornersExtender ID="RoundedCornersExtender2" runat="server" TargetControlID="Panel1" BorderColor="White" Radius="8">
                                    </asp:RoundedCornersExtender>
                                </td>
                            </tr>
                        </table>
                      </div>
                
            </asp:Panel>

        </ContentTemplate>
    </asp:UpdatePanel>


</asp:Content>
